//
//  SQCodeView.m
//  energy
//
//  Created by 周曼迪 on 2021/7/13.
//

#import "SQCodeView.h"

#import "SQCodeModel.h"
#import "SQSpecialDetailsModel.h"

@implementation SQCodeView


+(CGFloat)viewHeight:(BaseModel *)model withSection:(NSInteger)section{
    return W(45);
}

- (void)setModel:(__kindof BaseModel *)model{
    if ([model isKindOfClass:SQCodeModelData.class]) {
        SQCodeModelData * dataModel = model;
        self.lab_title.text = dataModel.rt_name;
    }else if ([model isKindOfClass:SQSpecialDetailsModelData.class]){
        SQSpecialDetailsModelData * dataModel = model;
        self.lab_title.text = dataModel.ci_name;
    }
    
    
    
   
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
